package com.blindBox.front.controller.userController;

import com.blindBox.front.commonResult.MsgBackToFront;
import com.blindBox.front.handler.mailHandler.MailHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController
{
    @Autowired
    private MailHandler mailHandler;
    //通过邮箱找回密码
    @PostMapping("/find_user_pwd")
    public MsgBackToFront find_user_pwd(@RequestParam("u_name")String u_name)
    {
        return mailHandler.findUserPwd(u_name);
    }
}
